<template>
  <van-space class="sub-table-row-editor-footer" style="justify-content: center; width: 100vw">
    <van-button size="small" round style="min-width: 25vw" @click="() => emits('copy')">复制</van-button>
    <van-button size="small" round type="danger" @click="() => emits('remove')" plain style="min-width: 25vw">删除</van-button>
    <van-button size="small" round type="primary" @click="() => emits('saveAndClose')" style="min-width: 25vw">保存并关闭</van-button>
  </van-space>
</template>
<script setup>
defineOptions({name: 'SubTableRowEditorFooter'});
const emits = defineEmits(['saveAndClose', 'remove', 'copy'])
</script>
<style scoped lang="less">
.sub-table-row-editor-footer {
  background: white;
  padding: 10px;
  border: 1px solid var(--van-button-default-border-color);
}
</style>